﻿using EWC.HIS.Domain.Data.Enums;
using EWC.HIS.Domain.Data.Repositories;
using SqlKata;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EWC.HIS.Dapper.Data
{
    public abstract class RepositoryDataTypeBase
    {
       // protected Task<IDbContext> DbSession => DbContextFactory.CreateSessionAsync(DbConnStr);
        /// <summary>
        /// 数据库连接
        /// </summary>
        protected abstract EDbConnStr DbConnStr { get; }

        /// <summary>
        /// 数据表名(默认类名，如果不是，需要在子类重写)
        /// </summary>
        protected abstract string TableName { get; }

        protected abstract SqlResult GetSqlResult(Query query);
    }
}
